home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / Xm / SgThumbWheel.z / SgThumbWheel
Encoding:
Text File  |  2002-10-03  |  19.5 KB  |  331 lines

  1.  
  2.  
  3.  
  4.      TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           SSSSggggTTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll - The ThumbWheel widget class
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ####iiiinnnncccclllluuuuddddeeee <<<<SSSSggggmmmm////TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll....hhhh>>>>
  13.  
  14.  
  15.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  16.           This page documents the version of Sgm that accompanies
  17.           Motif 2.1.
  18.  
  19.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.           ThumbWheel is used by an application to allow the user to
  21.           input or modify a value either from within a range of values
  22.           or from an unbounded (infinite) range.
  23.  
  24.           A ThumbWheel has an elongated rectangular region within
  25.           which a wheel graphic is displayed.  The user can modify the
  26.           ThumbWheel's value by spinning the wheel.  A ThumbWheel can
  27.           also include a Home Button located outside the wheel region.
  28.           This button allows the user to set the ThumbWheel's value to
  29.           a known position.
  30.  
  31.         CCCCllllaaaasssssssseeeessss
  32.           ThumbWheel inherits behavior and resources from CCCCoooorrrreeee and
  33.           PPPPrrrriiiimmmmiiiittttiiiivvvveeee classes.
  34.  
  35.           The class pointer is ssssggggTTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellllWWWWiiiiddddggggeeeettttCCCCllllaaaassssssss.
  36.  
  37.           The class name is SSSSggggTTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll.
  38.  
  39.         NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
  40.           The following table defines a set of widget resources used
  41.           by the programmer to specify data.  The programmer can also
  42.           set the resource values for the inherited classes to set
  43.           attributes for this widget.  To reference a resource by name
  44.           or by class in a .Xdefaults file, remove the XXXXmmmmNNNN, SSSSggggNNNN, XXXXmmmmCCCC,
  45.           or SSSSggggCCCC prefix and use the remaining letters.  To specify one
  46.           of the defined values for a resource in a .Xdefaults file,
  47.           remove the XXXXmmmm prefix and use the remaining letters (in
  48.           either lowercase or uppercase, but include any underscores
  49.           between words).  The codes in the access column indicate if
  50.           the given resource can be set at creation time (C), set by
  51.           using XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss (S), retrieved by using XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss (G),
  52.           or is not applicable (N/A).
  53.  
  54.                                   SSSSggggTTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  55.      NNNNaaaammmmeeee                      CCCCllllaaaassssssss                 TTTTyyyyppppeeee             DDDDeeeeffffaaaauuuulllltttt      AAAAcccccccceeeessssssss
  56.      ____________________________________________________________________________________
  57.      SgNhomePosition           SgCHomePosition       int              50           CSG
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))
  71.  
  72.  
  73.  
  74.      XmNmaximum                XmCMaximum            int              100          CSG
  75.      XmNminimum                XmCMinimum            int              0            CSG
  76.      SgNangleRange             SgCAngleRange         int              150          CSG
  77.      SgNunitsPerRotation       SgCUnitsPerRotation   int              240          CSG
  78.      XmNorientation            XmCOrientation        unsigned char    XmVERTICAL   CSG
  79.      SgNshowHomeButton         XmCShowHomeButton     Boolean          True         CSG
  80.      XmNvalue                  XmCValue              int              dynamic      CSG
  81.      XmNvalueChangedCallback   XmCCallback           XtCallbackList   NULL         C
  82.      XmNdragCallback           XmCCallback           XtCallbackList   NULL         C
  83.  
  84.  
  85.           SSSSggggNNNNhhhhoooommmmeeeePPPPoooossssiiiittttiiiioooonnnn
  86.                     Specifies the "known value" to which the thumb
  87.                     wheel's value is set when the home button is
  88.                     clicked.
  89.  
  90.           XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm
  91.                     Specifies the thumb wheel's maximum value.
  92.                     XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm must be greater than or equal to
  93.                     XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm.  Setting XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm equal to
  94.                     XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm indicates an infinite range.
  95.  
  96.           XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm
  97.                     Specifies the thumb wheel's minimum value.
  98.                     XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm must be greater than or equal to
  99.                     XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm.  Setting XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm equal to
  100.                     XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm indicates an infinite range.
  101.  
  102.           SSSSggggNNNNaaaannnngggglllleeeeRRRRaaaannnnggggeeee
  103.                     Specifies the angular range, in degrees, through
  104.                     which the thumb wheel is allowed to rotate.  This,
  105.                     in conjunction with XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm and XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm,
  106.                     controls the fineness or coarseness of the wheel
  107.                     control when it is not infinite.  If set to zero,
  108.                     the thumb wheel has an infinite range.
  109.  
  110.                     The default of 150 represents roughly the visible
  111.                     amount of the wheel.  Thus clicking at one end of
  112.                     the wheel and dragging the mouse to the other end
  113.                     would give roughly the entire range from
  114.                     XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm to XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm.
  115.  
  116.           SSSSggggNNNNuuuunnnniiiittttssssPPPPeeeerrrrRRRRoooottttaaaattttiiiioooonnnn
  117.                     Specifies the change in XXXXmmmmNNNNvvvvaaaalllluuuueeee when the wheel is
  118.                     rotated one full turn around.  This controls the
  119.                     fineness or coarseness of the wheel control when
  120.                     the range is infinite.
  121.  
  122.           XXXXmmmmNNNNoooorrrriiiieeeennnnttttaaaattttiiiioooonnnn
  123.                     Displays ThumbWheel vertically or horizontally.
  124.                     This resource can have values of XXXXmmmmVVVVEEEERRRRTTTTIIIICCCCAAAALLLL and
  125.                     XXXXmmmmHHHHOOOORRRRIIIIZZZZOOOONNNNTTTTAAAALLLL.
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))
  137.  
  138.  
  139.  
  140.           SSSSggggNNNNsssshhhhoooowwwwHHHHoooommmmeeeeBBBBuuuuttttttttoooonnnn
  141.                     Specifies whether a home button should be
  142.                     displayed next to the slider.  If the value is
  143.                     True, the home button is displayed.
  144.  
  145.           XXXXmmmmNNNNvvvvaaaalllluuuueeee  Specifies the current position of the thumb wheel,
  146.                     between XXXXmmmmNNNNmmmmiiiinnnniiiimmmmuuuummmm and XXXXmmmmNNNNmmmmaaaaxxxxiiiimmmmuuuummmm if the thumb
  147.                     wheel is not infinite.
  148.  
  149.           XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk
  150.                     Specifies the list of callbacks that is called
  151.                     when the value of the thumb wheel has changed.
  152.                     The reason sent by the callback is
  153.                     XXXXmmmmCCCCRRRR____VVVVAAAALLLLUUUUEEEE____CCCCHHHHAAAANNNNGGGGEEEEDDDD.
  154.  
  155.           XXXXmmmmNNNNddddrrrraaaaggggCCCCaaaallllllllbbbbaaaacccckkkk
  156.                     Specifies the list of callbacks that is called
  157.                     when the wheel position changes as the wheel is
  158.                     being spun.  The reason sent by the callback is
  159.                     XXXXmmmmCCCCRRRR____DDDDRRRRAAAAGGGG.
  160.  
  161.  
  162.         IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
  163.           ThumbWheel inherits behavior and resources from the
  164.           following superclasses.  For a complete description of each
  165.           resource, refer to the man page for that superclass.
  166.  
  167.                                          XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  168.      NNNNaaaammmmeeee                    CCCCllllaaaassssssss                   TTTTyyyyppppeeee               DDDDeeeeffffaaaauuuulllltttt                AAAAcccccccceeeessssssss
  169.      ________________________________________________________________________________________________
  170.      XmNbottomShadowColor    XmCBottomShadowColor    Pixel              dynamic                CSG
  171.      XmNbottomShadowPixmap   XmCBottomShadowPixmap   Pixmap             XmUNSPECIFIED_PIXMAP   CSG
  172.      XmNforeground           XmCForeground           Pixel              dynamic                CSG
  173.      XmNhelpCallback         XmCCallback             XtCallbackList     NULL                   C
  174.      XmNhighlightColor       XmCHighlightColor       Pixel              dynamic                CSG
  175.      XmNhighlightOnEnter     XmCHighlightOnEnter     Boolean            False                  CSG
  176.      XmNhighlightPixmap      XmCHighlightPixmap      Pixmap             dynamic                CSG
  177.      XmNhighlightThickness   XmCHighlightThickness   Dimension          0                      CSG
  178.      XmNnavigationType       XmCNavigationType       XmNavigationType   XmNONE                 CSG
  179.      XmNshadowThickness      XmCShadowThickness      Dimension          0                      CSG
  180.      XmNtopShadowColor       XmCTopShadowColor       Pixel              dynamic                CSG
  181.      XmNtopShadowPixmap      XmCTopShadowPixmap      Pixmap             dynamic                CSG
  182.      XmNtraversalOn          XmCTraversalOn          Boolean            False                  CSG
  183.      XmNunitType             XmCUnitType             unsigned char      dynamic                CSG
  184.      XmNuserData             XmCUserData             XtPointer          NULL                   CSG
  185.  
  186.                                                    CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  187.      NNNNaaaammmmeeee                            CCCCllllaaaassssssss                           TTTTyyyyppppeeee             DDDDeeeeffffaaaauuuulllltttt                AAAAcccccccceeeessssssss
  188.      ______________________________________________________________________________________________________________
  189.      XmNaccelerators                 XmCAccelerators                 XtAccelerators   dynamic                CSG
  190.  
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 10/3/02)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))
  203.  
  204.  
  205.  
  206.      XmNancestorSensitive            XmCSensitive                    Boolean          dynamic                G
  207.      XmNbackground                   XmCBackground                   Pixel            dynamic                CSG
  208.      XmNbackgroundPixmap             XmCPixmap                       Pixmap           XmUNSPECIFIED_PIXMAP   CSG
  209.      XmNborderColor                  XmCBorderColor                  Pixel            XtDefaultForeground    CSG
  210.      XmNborderPixmap                 XmCPixmap                       Pixmap           XmUNSPECIFIED_PIXMAP   CSG
  211.      XmNborderWidth                  XmCBorderWidth                  Dimension        0                      CSG
  212.      XmNcolormap                     XmCColormap                     Colormap         dynamic                CG
  213.      XmNdepth                        XmCDepth                        int              dynamic                CG
  214.      XmNdestroyCallback              XmCCallback                     XtCallbackList   NULL                   C
  215.      XmNheight                       XmCHeight                       Dimension        dynamic                CSG
  216.      XmNinitialResourcesPersistent   XmCInitialResourcesPersistent   Boolean          True                   C
  217.      XmNmappedWhenManaged            XmCMappedWhenManaged            Boolean          True                   CSG
  218.      XmNscreen                       XmCScreen                       Screen *         dynamic                CG
  219.      XmNsensitive                    XmCSensitive                    Boolean          True                   CSG
  220.      XmNtranslations                 XmCTranslations                 XtTranslations   dynamic                CSG
  221.      XmNwidth                        XmCWidth                        Dimension        dynamic                CSG
  222.      XmNx                            XmCPosition                     Position         0                      CSG
  223.      XmNy                            XmCPosition                     Position         0                      CSG
  224.  
  225.         CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
  226.           A pointer to the following structure is passed to each
  227.           callback:
  228.  
  229.           ttttyyyyppppeeeeddddeeeeffff ssssttttrrrruuuucccctttt
  230.           {{{{
  231.             iiiinnnntttt      _r_e_a_s_o_n;;;;
  232.             XXXXEEEEvvvveeeennnntttt   * _e_v_e_n_t;;;;
  233.             iiiinnnntttt      _v_a_l_u_e;;;;
  234.           }}}} SSSSggggTTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellllCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt;;;;
  235.  
  236.  
  237.           _r_e_a_s_o_n Indicates why the callback was invoked
  238.  
  239.           _e_v_e_n_t  Points to the XXXXEEEEvvvveeeennnntttt that triggered the callback
  240.  
  241.           _v_a_l_u_e  Is the new thumb wheel value
  242.  
  243.  
  244.         BBBBeeeehhhhaaaavvvviiiioooorrrr
  245.           ThumbWheel behavior is described below:
  246.  
  247.  
  248.           BBBBSSSSeeeelllleeeecccctttt PPPPrrrreeeessssssss or BBBBDDDDrrrraaaagggg PPPPrrrreeeessssssss:
  249.                     (in slider):  Activates the interactive dragging
  250.                     of the wheel.
  251.  
  252.                     (in home button):  Sets the wheel value to
  253.                     SSSSggggNNNNhhhhoooommmmeeeePPPPoooossssiiiittttiiiioooonnnn.
  254.  
  255.           BBBBSSSSeeeelllleeeecccctttt MMMMoooottttiiiioooonnnn or BBBBDDDDrrrraaaagggg MMMMoooottttiiiioooonnnn:
  256.                     If the button press occurs within the wheel, the
  257.                     subsequent motion events spin the wheel to follow
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 10/3/02)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            TTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellll((((3333XXXX))))
  269.  
  270.  
  271.  
  272.                     the motion of the pointer and call the callbacks
  273.                     for XXXXmmmmNNNNddddrrrraaaaggggCCCCaaaallllllllbbbbaaaacccckkkk.
  274.  
  275.           BBBBSSSSeeeelllleeeecccctttt RRRReeeelllleeeeaaaasssseeee or BBBBDDDDrrrraaaagggg RRRReeeelllleeeeaaaasssseeee:
  276.                     If the button press occurs within the wheel and
  277.                     the wheel position is changed, the callbacks for
  278.                     XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk are called.
  279.  
  280.  
  281.         VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss
  282.           The bindings for virtual keys are vendor specific.  For
  283.           information about bindings for virtual buttons and keys, see
  284.           VVVViiiirrrrttttuuuuaaaallllBBBBiiiinnnnddddiiiinnnnggggssss((((3333XXXX)))).
  285.  
  286.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  287.           SSSSggggTTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellllGGGGeeeettttVVVVaaaalllluuuueeee((((3333XXXX)))), SSSSggggTTTThhhhuuuummmmbbbbWWWWhhhheeeeeeeellllSSSSeeeettttVVVVaaaalllluuuueeee((((3333XXXX)))),
  288.           PPPPrrrriiiimmmmiiiittttiiiivvvveeee((((3333XXXX)))), CCCCoooorrrreeee((((3333XXXX))))
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.      Page 5                                          (printed 10/3/02)
  328.  
  329.  
  330.  
  331.